#include "conn.hpp"

int main(){
    StringUtil::UrlParam params;
    MYSQL* conn;
    Init(params,conn); 

    //根据业务需要进行计算
    string user = params["user"];
    string pwd = params["cgi_pwd"];
    stringstream ss;
    string output;

    OperateUser::AddUser(conn,user,pwd);
    
    Stay(conn,output,params,user);
    
    //根据计算结果，构造相应的数据，写回到标准输出中
    ss << output;
   
    HttpResponse(ss.str());
    return 0;
}
